package com.guiji.quartz.task;

import com.guiji.quartz.domain.PeopleNews;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description: 人民网军事
 * @author: gaoX
 * @create: 2021-08-30 10:45
 **/
@Component("peopleNewsTask")
public class PeopleNewsTask {
	private static final Logger log = LoggerFactory.getLogger(PeopleNewsTask.class);
	public void peopleNews() {
		Long startTime = System.currentTimeMillis();
		PeopleNews peopleNews =new PeopleNews();
		try {
			peopleNews.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("peopleNewsTask-end-:{}",System.currentTimeMillis()-startTime);
		}
	}
}
